
brand='yqcx'
en_url_name="bike_ride"
version_name="1.0.8"
size=0
desc="测试"

echo ">>>上传android版本记录：$brand"
echo '{
    "app_config_id": 2,
    "desc": "'${desc}'",
    "agent": 2,
    "remote_url": "'https://assets-cdn.36bike.com/download/oversea/$brand/$en_url_name-$version_name.apk'",
    "brand_code": "'$brand'",
    "real_size": '${size}',
    "is_new": 2,
    "version": "'$version_name'"
  }' >data.json

curl --request POST \
  --url https://mp.bike.starthing.com/platform-api/v1/applications/toNewRecord \
  --header 'Content-Type: application/json; charset=UTF-8' \
  --data @data.json #JSON 数据保存到一个文件,-d传递，避免中文乱码



#iosUrl="https://testflight.apple.com/join/WPJGekMY"
#iosDesc="测试"
#
#echo ">>>上传版本记录：$brand"
#echo '{
#      "app_config_id": 2,
#      "desc": "'${iosDesc}'",
#      "agent": 1,
#      "remote_url": "'$iosUrl'",
#      "brand_code": "'$brand'",
#      "real_size": 0,
#      "is_new": 2,
#      "version": "'$version_name'"
#    }' >data.json
#
#curl --request POST \
#  --url https://mp.bike.starthing.com/platform-api/v1/applications/toNewRecord \
#  --header 'Content-Type: application/json; charset=UTF-8' \
#  --data @data.json #JSON 数据保存到一个文件,-d传递，避免中文乱码


sleep 100
